<div class="row-fluid">
    <div class="area">
            <legend><h4>全部分类 (15万电影，电视剧资源) </h4>
            </legend>
            <div>
                {foreach from=$categories item=item key=key}
                {if $smarty.const.debug }
                <a style="margin-bottom:5px;" class="btn btn-small" href="index.php?action=category&id={$key}" target="_blank" alt="{$item.name}"><b>{$item.name}</b>({$item.count})</a>
                {else}
                <a style="margin-bottom:5px;" class="btn btn-small" href="/category?id={$key}" target="_blank" alt="{$item}"><b>{$item.name}</b>({$item.count})</a>
                {/if}

                {/foreach}
            </div>
        </div>
</div>